I missed this use of raw UTF8Characters last time. Hopefully this
should be the last fix required for WebKit support.
https://bugzilla.gnome.org/show_bug.cgi?id=666444
NPString version_tag)
{
gchar *uuid_str = g_strndup (uuid.UTF8Characters, uuid.UTF8Length);
+ gchar *version_tag_str;
+
if (!uuid_is_valid (uuid_str))
{
g_free (uuid_str);
return FALSE;
}
+ version_tag_str = g_strndup (version_tag.UTF8Characters,
+ version_tag.UTF8Length);
+
g_dbus_proxy_call (obj->proxy,
"InstallRemoteExtension",
g_variant_new ("(ss)",
uuid_str,
- version_tag.UTF8Characters),
+ version_tag_str),
G_DBUS_CALL_FLAGS_NONE,
-1, /* timeout */
NULL, /* cancellable */
NULL /* user_data */);
g_free (uuid_str);
+ g_free (version_tag_str);
return TRUE;
}